import './clearLog'
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'amfe-flexible'
import '@/router/permission'
import './utils/directive'
import 'highlight.js/styles/default.css' // 代码高亮的样式
import { Lazyload, Loading, Dialog, Image, Tag, Badge, Col, Row, NavBar, Button, Form, Field, Tabbar, TabbarItem, Icon, Tab, Tabs, Cell, List, PullRefresh, ActionSheet, Toast, Popup, Search, Divider, CellGroup, Uploader, DatetimePicker } from 'vant'
import Notify from '@/ui/NotifyRegister.js'
import '@/utils/storage'
// 图片懒加载配置
Vue.use(Lazyload, {
  lazyComponent: true,
  preLoad: 1

})
Vue.use(Notify)
Vue.use(Loading)
Vue.use(Dialog)
Vue.use(Divider)
Vue.use(Tag)
Vue.use(CellGroup)
Vue.use(Image)

Vue.use(Uploader)
Vue.use(Search)
Vue.use(Badge)
Vue.use(Col)
Vue.use(Row)
Vue.use(Popup)
Vue.use(Toast)
Vue.use(ActionSheet)
Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Cell)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Icon)
Vue.use(NavBar)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)

Vue.use(DatetimePicker)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
